const koa = require('koa'),
koaBody = require('koa-body'),
koaStatic = require('koa-static'),
router = require('./router.js'),
mount = require('koa-mount'),
Pug = require('koa-pug'),
app = new koa(),
pug = new Pug({
  viewPath: 'view',
  basedir: './',
	noCache:true
});

pug.use(app);

app
  .use(koaBody())
  .use(router.routes())
  .use(router.allowedMethods())
  .use(mount('/static',koaStatic('./static')))
  .listen(1200);

